/*************************************************************
 * Title: 
 * Description: 
 * Author: Snow Huang
 * Email: Shaobin.Software@gmail.com Shaobin_Software@163.com
 * CreateTime: 2010-8-1 下午03:28:06
 * Copyright © 落羽社区 All right reserved
 ************************************************************/
package snow.core.domain.query;

import java.io.Serializable;

import snow.core.domain.query.operator.Operator;

/**
 * 
 */
public class Criterion implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3178975249920098918L;
	
	private String propertyName; // 属性名
	private Object propertyValue; // 属性值
	private Operator operator; // 运算符

	Criterion(String propertyName, Object propertyValue, Operator operator) {
		this.propertyName = propertyName;
		this.propertyValue = propertyValue;
		this.operator = operator;
	}

	/**
	 * @return the operator
	 */
	public Operator getOperator() {
		return operator;
	}

	/**
	 * @return the propertyName
	 */
	public String getPropertyName() {
		return propertyName;
	}

	/**
	 * @return the propertyValue
	 */
	public Object getPropertyValue() {
		return propertyValue;
	}
}
